var ajax = function (url, method, data, callback) {
    $.ajax({
            url: url,
            type: method,
            timeout: 3000,
            data: data,
            success: function (data) {

            },
            error: function () {

            }
        }
    );
}